package com.patelski.magic.model;

import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.Entity;

import org.jboss.seam.annotations.Name;

public enum Foil {

	NF("NF", "Non-Foil"),
	F("F", "Foil");

    private String value;
    private String description;

    Foil(String value, String description) {
        this.value = value;
        this.description = description;
    }
    
    public static Foil fromString(String value)
    {
        return valueOf(value);
    }
    
    public static Collection<String> literals()
    {
        final Collection<String> literals = new ArrayList<String>(values().length);
        for (int i = 0; i < values().length; i++)
        {
            literals.add(values()[i].name());
        }
        return literals;
    }
    
	public String getDescription() {
		return description;
	}
    
}
